//
//  Caculate.hpp
//  Learn_C_Cpp
//
//  Created by jinbang.li on 2023/7/23.
//

#ifndef Caculate_hpp
#define Caculate_hpp

#include <stdio.h>

template <typename T>
class Calculate{
public:
    Calculate(T t1,T t2):first(t1),second(t2){}
    inline T add(){
        return first + second;
    };
    inline T sub(){
        return first - second;
    };
    inline T mul(){
        return first * second;
    };
    inline T div(){
        return first/second;
    };
private:
    T first;
    T second;
};

#endif /* Caculate_hpp */
